<?php

declare(strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Request\Business\Cert;

use App\Request\RequestAbstract;

/**
 * 商家认证验证器
 *
 * @author 李想(928674263@qq.com)
 * @package App\Request\Business\Cert
 */
class BusinessCertRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'business_name' => 'required',
            'business_card_id' => 'required',
            'business_bank_id' => 'required',
            'business_idcard_positive' => 'required',
            'business_idcard_negative' => 'required',
            'company_name' => 'required',
            'legal_name' => 'required',
            'industry_id' => 'required|integer',
            'province_id' => 'required|integer',
            'city_id' => 'required|integer',
            'district_id' => 'required|integer',
            'address' => 'required',
            'tel' => 'required',
            'settled_type' => 'required|integer',
            'company_license_pic' => 'required',
            'longitude' => 'required',
            'latitude' => 'required',
            'code' => 'required',
            'identity_code' => 'required'
        ];
    }
}